/*
  采购订单
*/
import request from '@/utils/request'
// 创建采购订单
export function add(data) {
  return request({
    url: '/orders/insert',
    method: 'post',
    data: data
  })
}
// 修改采购订单
export function updateCheck(params) {
  return request({
    url: '/orders/check',
    method: 'post',
    params: params
  })
}
// 删除采购订单
export function deletes(params) {
  return request({
    url: '/orders/delete',
    method: 'get',
    params: params
  })
}
// 采购订单查询单个详情
export function getSelect(params) {
  return request({
    url: '/orders/select',
    method: 'get',
    params: params
  })
}
// 采购订单查询全部
export function getSelectAll() {
  return request({
    url: '/orders/selectAll',
    method: 'get',
  })
}

